import { request } from '@/utils/request';
/**
 * @description 获取操作模版列表
 * @returns
 */
export function getActionTempList(data) {
  return request({
    url: '/api/deployment/getActionTempList',
    method: 'post',
    data,
  });
}

/**
 * @description 删除操作模版
 * @returns
 */
export function deleteActionTemp(data: any) {
  return request(
    {
      url: '/api/deployment/deleteActionTemp',
      method: 'post',
      data,
    },
    {
      successMsg: '删除成功',
    },
  );
}

/**
 * @description 创建操作模版
 * @returns
 */
export function createActionTemp(data: API.AddDictParams) {
  return request({
    url: '/api/deployment/addActionTemp',
    method: 'post',
    data,
  });
}

// 更新操作模版
export function editActionTemp(data: API.UpdateDictParams) {
  return request({
    url: '/api/deployment/updateActionTemp',
    method: 'post',
    data,
  });
}
